package cn.ante.handle;

import cn.ante.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

/**
* @Description: user流控降级类
* @Author: Nai
* @Version: 1.0
* @Date:  2022/8/2 15:59
*/
public class UserBlockHandle {
    public static User getUserByIdBlockHandler(@PathVariable Long id, BlockException ex){
        return new User(-1L,"随便降嘛","流控");
    }
}
